package com.xujl.hsns.test;

import java.io.Serializable;
import java.util.*;

public class User implements Serializable{
	

	private String name;
	private List<Group> groups = new ArrayList<Group>();
	private User reportTo;
	public User(){
	}
	public User getReportTo() {
	return reportTo;
	}
	public void setReportTo(User reportTo) {
	this.reportTo = reportTo;
	}
	public User(String name){
	this.name = name;
	}
	public String getName() {
	return name;
	}
	public void setName(String name) {
	this.name = name;
	}
	public List<Group> getGroups() {
	return groups;
	}
	public void setGroups(List<Group> groups) {
	this.groups = groups;
	}
	public String toString() {
	return this.name;
	}
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -4149664253800242012L;

	
	public User(int age,String sex){
		
		this.age=age;
		this.sex=sex;
	}
	int age;
	
	String sex;

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

}
